package info.motteke.mixivoice4j.http.json.favorite.get;

import net.arnx.jsonic.JSONHint;

public class Favorite {

    private String nickname;

    private boolean canDelete;

    private long userId;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = unescape(nickname);
    }

    private String unescape(String string) {
        return string.replaceAll("&gt;", ">").replaceAll("&lt;", "<");
    }

    @JSONHint(name = "can_delete")
    public boolean canDelete() {
        return canDelete;
    }

    @JSONHint(name = "can_delete")
    public void setCanDelete(boolean canDelete) {
        this.canDelete = canDelete;
    }

    @JSONHint(name = "feedback_member_id")
    public long getUserId() {
        return userId;
    }

    @JSONHint(name = "feedback_member_id")
    public void setUserId(long userId) {
        this.userId = userId;
    }
}